import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-12-12
 * Time:16:22
 */
public class TestDemo {
}
class BaseException extends IOException {}

class DerivedException extends FileNotFoundException {}

//当Paul尝试在自己的接口中使用这些异常类时，代码无法编译：

interface Base {

    void read() throws BaseException;

}

interface Derived extends Base {

    @Override
    //void read() throws BaseException;//重写父类的方法
    void read();



}
